/*
 * Copyright (C) 2012  Romain DUBOIS
 * 
 * This file is part of NeMoS - Network and Modular Software
 * 
 * NeMoS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * NeMoS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with NeMoS.  If not, see <http://www.gnu.org/licenses/>.
 */
package nemos.remote.rsa.internal;

/**
 * RsaMessage : The RSA bundle messages.
 * 
 * @author Romain DUBOIS
 */
public final class RsaMessage {

    /** Trying export with config */
    public static final String EXPORT_WITH_CONFIG = "export.configuration"; //$NON-NLS-1$
    /** The export configurations declared in properties */
    public static final String DECLARED_CONFIGS = "export.configuration.declared"; //$NON-NLS-1$
    /** The retained configurations for export */
    public static final String RETAINED_CONFIGS = "export.configuration.retained"; //$NON-NLS-1$
    /** Export is ended */
    public static final String EXPORT_ENDED = "export.ended"; //$NON-NLS-1$
    /** An endpoint has been created */
    public static final String ENDPOINT_CREATED = "export.endpoint.created"; //$NON-NLS-1$
    /** The export interfaces declared in properties */
    public static final String DECLARED_INTERFACES = "export.interface.declared"; //$NON-NLS-1$
    /** A class is not visible for export */
    public static final String UNKNOWN_CLASS = "export.interface.error"; //$NON-NLS-1$
    /** The interfaces retained for export */
    public static final String RETAINED_INTERFACES = "export.interface.retained"; //$NON-NLS-1$
    /** Notify listeners of the service export */
    public static final String NOTIFY_EXPORT = "export.notify"; //$NON-NLS-1$
    /** Starting service export */
    public static final String START_EXPORT = "export.start"; //$NON-NLS-1$

    /** Try miport for configuration */
    public static final String IMPORT_FOR_CONFIG = "import.configuration.type"; //$NON-NLS-1$
    /** The import operation ended */
    public static final String IMPORT_ENDED = "import.ended"; //$NON-NLS-1$
    /** Notify listeners of the import */
    public static final String NOTIFY_IMPORT = "import.notify"; //$NON-NLS-1$
    /** Importing an endpoint */
    public static final String START_IMPORT = "import.start"; //$NON-NLS-1$

    /** The remote call failed */
    public static final String REMOTE_CALL_FAILED = "msg.call.error"; //$NON-NLS-1$
    /** The source framework does not match */
    public static final String INVALID_SOURCE_FRAMEWORK = "msg.framework.error"; //$NON-NLS-1$
    /** The target framework is no longer connected */
    public static final String UNKNOWN_TARGET_FRAMEWORK = "msg.framework.unknown"; //$NON-NLS-1$
    /** The init message is invalid */
    public static final String INVALID_INIT = "msg.init.invalid"; //$NON-NLS-1$
    /** The initialization failed */
    public static final String INIT_FAILED = "msg.init.error"; //$NON-NLS-1$
    /** An invocation failed */
    public static final String INVOCATION_ERROR = "msg.invocation.error"; //$NON-NLS-1$
    /** A response sending failed */
    public static final String UNABLE_TO_SEND_RESPONSE = "msg.invocation.lost"; //$NON-NLS-1$
    /** A remote call message targets an unknwon service */
    public static final String UNKNOWN_SERVICE = "msg.invocation.unknown"; //$NON-NLS-1$
    /** An error occurred while waiting for next message */
    public static final String LISTENING_EXCEPTION = "msg.listen.error"; //$NON-NLS-1$
    /** Start to listen to incoming messages */
    public static final String START_LISTENING = "msg.listen.start"; //$NON-NLS-1$
    /** Stop to listen to incoming messages */
    public static final String STOP_LISTENING = "msg.listen.stop"; //$NON-NLS-1$
    /** An incoming message has an unsupported type */
    public static final String UNEXPECTED_MESSAGE_TYPE = "msg.listen.unknown"; //$NON-NLS-1$
    /** A message was not sent */
    public static final String SENDING_ERROR = "msg.send.error"; //$NON-NLS-1$
    /** A message is not serializable */
    public static final String SERIALIZATION_ERROR = "msg.serialization.error"; //$NON-NLS-1$
    /** Message service start failed */
    public static final String START_FAILED = "msg.start.error"; //$NON-NLS-1$
    /** Message service stop failed */
    public static final String STOP_FAILED = "msg.stop.error"; //$NON-NLS-1$

    /** Create a new service proxy */
    public static final String CREATE_PROXY = "proxy.create"; //$NON-NLS-1$
    /** An imported endpoint is no longer active */
    public static final String UNKNOWN_ENDPOINT = "proxy.endpoint.error"; //$NON-NLS-1$
    /** The interfaces retained for proxy */
    public static final String IMPORT_INTERFACES = "proxy.interface"; //$NON-NLS-1$
    /** An interface is ignored for the imported service */
    public static final String UNKNOWN_INTERFACE = "proxy.interface.unknown"; //$NON-NLS-1$
    /** Closing a service proxy */
    public static final String CLOSING_PROXY = "proxy.stop"; //$NON-NLS-1$
    /** The closing a service proxy failed */
    public static final String CLOSING_PROXY_ERROR = "proxy.stop.error"; //$NON-NLS-1$

    /** A reference still exists */
    public static final String EXISTING_REFERENCE = "reference.active"; //$NON-NLS-1$

    /** The framework is already handled by the server */
    public static final String FRAMEWORK_ALREADY_SUPPORTED = "server.framework.alreadyHandled"; //$NON-NLS-1$
    /** The framework is not handled by the server */
    public static final String FRAMEWORK_NOT_SUPPORTED = "server.framework.notHandled"; //$NON-NLS-1$
    /** Server is creating local transport */
    public static final String CREATE_LOCAL_TRANSPORT = "server.local.create"; //$NON-NLS-1$

    /** The current thread has been interrupted */
    public static final String INTERRUPTED_THREAD = "thread.interrupted"; //$NON-NLS-1$

    /** A message has been received */
    public static final String MESSAGE_IN = "transport.in"; //$NON-NLS-1$
    /** The transport is no longer activer */
    public static final String INACTIVE_TRANSPORT = "transport.inactive"; //$NON-NLS-1$
    /** A message will be sent */
    public static final String MESSAGE_OUT = "transport.out"; //$NON-NLS-1$

    /**
     * Constructor (private for constants class)
     */
    private RsaMessage() {
        super();
    }
}
